package com.sy.dao;


import com.sy.entity.Userlogin;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @description: 码起 自动生成代码
 * @author: 小毛
 * @create: 2020-11-25 22:00:26
 */
public interface UserloginDao {
    /*新增*/
    @Insert("insert into userlogin (id,uid,ip,address,ctime) values(#{id},#{uid},#{ip},#{address},#{ctime})")
    int insert(Userlogin userlogin);

    /*删除*/
    @Delete("delete from userlogin where id=#{id}")
    int deleteById(int id);
    /*查询全部*/
    @Select("select * from userlogin")
    List<Userlogin> all();
}